/*!
 * Copyright (c) Enalean, 2017. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

%homepage-section {
    flex: 1 1 50%;
}

$homepage-white-color: #ffffff;
$tlp-theme-homepage-background-color: #f6f6f6;

.homepage-content {
    display: flex;
    height: 100%;
}

.homepage-sign-in-section {
    @extend %homepage-section;

    display: flex;
    background: $tlp-theme-homepage-background-color;
}

.homepage-create-account-section {
    @extend %homepage-section;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: $tlp-theme-color;
    color: $homepage-white-color;
}

.homepage-welcome-wrapper {
    flex: 1 0 auto;
    width: 100%;
    padding: 80px 60px 40px;
}

.homepage-welcome-title {
    line-height: 35px;
}

.homepage-headline {
    width: 100%;
    margin: 0 0 30px;
    font-size: 17px;
    line-height: 30px;

    a {
        color: $homepage-white-color;
        text-decoration: underline;

        &:hover {
            text-decoration: none;
        }
    }
}

.homepage-create-account-button {
    margin: 0 0 30px;
    padding: 5px 25px;
    background: $homepage-white-color;
    color: $tlp-theme-color;
}

.homepage-create-account-button-icon {
    font-size: 18px;
}

.homepage-screenshots {
    max-width: 85%;
    min-height: 1px; // Fix IE11 sorcery
    margin: auto;
}

.homepage-sign-in-container {
    display: flex;
    flex-direction: column;
    width: 440px;
    margin: 0 auto;
    padding: 50px 20px;
}

.homepage-logo-container {
    text-align: center;
}

.homepage-platform-logo {
    width: 250px;
    margin: 0 0 30px;
}

.homepage-colored-logo {
    fill: $tlp-theme-color;
}

%homepage-sign-in-grow {
    flex: 0 1 auto;
}

.homepage-sign-in {
    @extend %homepage-sign-in-grow;

    padding: 40px 70px;
    border-radius: 3px;
    background: $homepage-white-color;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);

    .tlp-label {
        margin: 0 0 5px;
        color: #9b9b9b;
        font-size: .8em;
    }

    .tlp-input {
        border-color: $tlp-theme-color;

        &::placeholder {
            color: lighten($tlp-theme-color, 20%);
        }
    }
}

.sign-in-avatar {
    margin: 0 0 40px;
    text-align: center;
}

.sign-in-forgot-password {
    float: right;
    color: $tlp-theme-color;
}

.sign-in-forgot-password,
.sign-in-register {
    > a {
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

.sign-in-button {
    height: 50px;
    padding: 5px 25px;
}

.sign-in-register {
    display: block;
    margin: 60px 0 0;
    text-align: center;
}

.homepage-already-signed-in {
    @extend %homepage-sign-in-grow;

    padding: 40px;
    border-radius: 3px;
    background: $homepage-white-color;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
    text-align: center;

    > .homepage-avatar {
        margin: 0 0 45px;

        > .avatar > img {
            width: 75px;
            height: 75px;
        }
    }
}

.homepage-already-signed-in-welcome {
    margin: 0 0 40px;
}

.homepage-already-signed-in-welcome-title {
    margin: 0 0 10px;
    color: $tlp-theme-color;
    font-weight: 600;
}

.homepage-user-real-name {
    display: block;
    margin: 0 0 5px;
    color: $tlp-theme-color;
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
}

.homepage-user-login-name {
    display: block;
    color: #777777;
    font-size: 16px;
    line-height: 16px;
}

.homepage-my-personal-page {
    padding: 5px 25px;
}
